package movee.spring.app.template.domain.api;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 *
 * @author movee
 */
@Data
@NoArgsConstructor
public class CountedNormalResponse<T> extends ApiResponse {

    private CountedResponseData<T> data;

    public CountedNormalResponse(final CountedResponseData<T> data) {
        super(ApiStatusCode.OK.getCode(), "success");
        this.data = data;
    }

    public CountedNormalResponse(final String message, final CountedResponseData<T> data) {
        super(ApiStatusCode.OK.getCode(), message);
        this.data = data;
    }

}
